useCurrent while creating views

Am trying to create new views using DXL. I have retained few settings however am not able to use the useCurrent function (Remember settings for Current object). Can someone help me?

 


descendants(false)
ancestors(true)
set (current Module, fFinalFilter, iAccepted, iRejected)
filtering(true)
sorting(true)
save view "New View"

Dk3456 - Fri Nov 30 18:37:10 EST 2018

Re: useCurrent while creating views
strathglass - Fri Dec 07 09:16:37 EST 2018

I haven't tried this but from the help it looks like it would be the below function useCurrent().

But note this requires you to work with the View Definition, so that will be added code to what you have above, presumably after you first save the view.

 

useCurrent(get and set) 
Declaration 

  • bool useCurrent(ViewDef viewDef) 
  • void useCurrent(ViewDef viewDef, bool save) 

Operation 
The first form returns true if the option to save information about the currently selected object is currently set. Otherwise, returns false. 
The second form sets the option to save information about the currently selected object.